<template>
  <div>
    <tree-drag
      :data="data"
      :props="defaultProps"
      :draggable="true"></tree-drag>
  </div>
</template>

<script>
import TreeDrag from '@/components/drag-tree/index.vue'
export default {
  components: {
    TreeDrag
  },
  data () {
    return {
      data: [{
          id: 1,
          label: '一级 1',
          children: [{
            id: 4,
            label: '二级 1-1'
          }],
          TreeImg: 'http://imgs.itchenliang.club/img/202209201118178.png'
        }, {
          id: 2,
          label: '一级 2',
        }, {
          id: 3,
          label: '一级 3',
          children: [{
            id: 7,
            label: '二级 3-1'
          }, {
            id: 8,
            label: '二级 3-2',
            children: [{
             id: 11,
              label: '三级 3-2-1'
            }, {
              id: 12,
              label: '三级 3-2-2'
            }]
          }]
      }],
      defaultProps: {
        children: 'children',
        label: 'label'
      }
    }
  },
  methods: {
  },
  mounted () {
  }
}
</script>

<style>

</style>